STA6349: Applied Bayesian Analysis
Spring 2025
Our course lectures and labs are posted on GitHub.
Please bookmark the repository: GitHub for STA6349.
You will want to look at my .qmd files for formatting / \LaTeX purposes.
Feel free to poke around my GitHub to see materials for other classes.
Journal article: Tidy Data by Wickham (2014, Journal of Statistical Software)
Book chapter: Data Tidying by Wickham, Çetinkaya-Rundel, and Grolemund
tibble for modern data frames.readr and haven for data import.
readr is pulled in with tidyversehaven needs to be called in on its owntidyr for data tidying.dplyr for data manipulation.ggplot2 for data visualization.tidyverse: data science in a boxtidyverse is the common “language” between the functions.%>%.
%>% deposits everything that came before into the first argument of the next function.
Error in tibble(starwars) %>% filter(mass < 100): could not find function "%>%"
tidyverse.select(): Selecting columns.filter(): Filtering the observations.mutate(): Adding or transforming columns.summarise(): Summarizing data.group_by(): Grouping data for summary operations.%>%: Pipelines.select(): Selecting columns.filter(): Filtering rows.mutate(): Adding or transforming columns.summarise(): Summarizing data.group_by(): Grouping data for summary operations.Today we have gently introduced data management in R.
I do not expect you to become an expert R programmer, but the more you practice, the easier it becomes.
Today’s activity: Assignment 0